* {
    margin: 0;
    padding: 0;
}
    
.box {
    /* 弹性布局使页面垂直水平居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: linear-gradient(#78f,#f78);
}
.box ul {
    width: 1000px;
    height: 320px; 
    overflow: hidden;
}
.box ul li {
    position: relative;
    float: left;
    list-style-type: none;
    width: 200px;
    height: 320px;
transition: all .5s; 
}
.box ul li p {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background-color: rgba(0, 0, 0, .3);
    transition: all .3s;
}
.box ul li:hover p{
    font-size: 20px;
}
.box ul:hover li {
    width: 90px;
}
.box ul li:hover {
    width: 640px;
}